From 86875677668e0c13e8089d8ff5c38698b57d7193 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 30 Aug 2005 14:14:31 +0000 Subject: [PATCH] Fix user-space four- and five-argument hypercalls on x86/64. This fixes domU building on x86/64 (bug #196). Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c index 68107dfac4..8877ddef72 100644 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c @@ -66,7 +66,7 @@ static int privcmd_ioctl(struct inode *inode, struct file *file, { long ign1, ign2, ign3; __asm__ __volatile__ ( - "movq %5,%%r10; movq %6,%%r8;" TRAP_INSTR + "movq %8,%%r10; movq %9,%%r8;" TRAP_INSTR : "=a" (ret), "=D" (ign1), "=S" (ign2), "=d" (ign3) : "0" ((unsigned long)hypercall.op), "1" ((unsigned long)hypercall.arg[0]), -- 2.30.2